package com.qiandao.xuexitong.dto;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 创建班级请求DTO
 */
@Data
public class CreateClassroomDTO {
    
    @NotBlank(message = "班级名称不能为空")
    private String name;
    
    @NotBlank(message = "班级编号不能为空")
    @Pattern(regexp = "^[A-Z0-9]{2,20}$", message = "班级编号格式不正确")
    private String code;
} 